package com.example.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.utils.PageUtils;
import com.example.ware.entity.PurchaseEntity;
import com.example.ware.vo.MergeVo;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author cheval
 * @email chevalyang@163.com
 * @date 2022-12-29 10:37:50
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询未被采购员领取的订单 status = 0 / 1
     * @return
     */
    PageUtils queryReceivePurList(Map<String, Object> params);

    /**
     * 将采购请求单合并成采购单
     * @param mergeVo
     */
    void mergePurchase(MergeVo mergeVo);

    void received(List<Long> ids);
}

